﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using _4T.Data;
using _4T.BLL;

namespace _4T
{
    public partial class SearchResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string searchText = Page.Request.Form["s"];
            List<CMS_SearchResult> list = new ProfileBLL().SimpleSearch(searchText);
            if (list != null && list.Count > 0)
            {
                rptSearch.DataSource = list;
                rptSearch.DataBind();
            }
        }
    }
}